
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessObject;
using DataAccessLayer;

namespace BusinessLogic
{
    /// <summary>
    /// Define DMXeUtil class. This class user for BussinessLayer.

    /// </summary>
    public class DMXeUtil
    {
        /// <summary>
        /// Define function Insert for DMXe Object.
        /// </summary>
        /// <param name="t">object data need Insert.</param>
        /// <returns>
        ///    True: if insert successfull.
        ///    False: if insert error.
        ///</returns>
        public static bool Insert(DMXe t)
        {

            return DMXeDao.Insert(t);
        }
        /// <summary>
        /// Define function Update for DMXe Object.
        /// </summary>
        /// <param name="t">project data need updated.</param>
        /// <returns>
        ///    True: if update successful.
        ///    False: if update Error.
        ///</returns>
        public static bool Update(DMXe t)
        {

            return DMXeDao.Update(t);
        }
        /// <summary>
        /// Get All DMXe object from table DMXe.
        /// </summary>
        /// <returns>List DMXe object.</returns>
        public static List<DMXeResult> GetAll()
        {
            return DMXeDao.GetAll();
        }
        /// <summary>
        /// Search DMXe object in table DMXe.
        /// </summary>
        /// <param name="t">Condition for Search.</param>

        /// <returns>List DMXeResult objects.</returns>

        public static List<DMXeResult> SearchDMXeSomeCondition(DMXe t)
        {
            return DMXeDao.SearchDMXeSomeCondition(t);
        }
        /// <summary>
        /// Get a DMXe data object by primary key. 
        /// </summary>
        /// <param name="maXe" >This is primary key.</param>
        /// <returns>A DMXe object.</returns>

        public static DMXe Get(int maXe)
        {
            return DMXeDao.Get(maXe);
        }
        /// <summary>
        /// This function to Delete DMXe object by primary key.
        /// </summary>
        /// <param name="maXe" >This is primary key.</param>
        /// <returns>If succesful return True else  return False.</returns>

        public static bool Delete(int maXe)
        {

            return DMXeDao.Delete(maXe);
        }
        public static bool Publish(DMXe obj)
        {
            return DMXeDao.Publish(obj);
        }
        public static bool Order(DMXe obj, int type)
        {
            return DMXeDao.Order(obj, type);
        }
        public static List<DMXeResult> GetByChungXe(int chungXe)
        {
            return DMXeDao.GetByChungXe(chungXe);
        }


    }
}